import http from './http.js'

module.exports = {

  login: function(params, success, fail) {
    http.post('/api/login', params, success, fail)
  },

  getActivitys: function(params, success, fail) {
    http.post('/api/activity/query', params, success, fail)
  },

  getActivityDetail: function(params, success, fail) {
    http.post('/api/activity/detail', params, success, fail)
  },

  sendSmsCode: function(params, success, fail) {
    http.post('/api/sms/sendCode', params, success, fail)
  },

  getOpenId: function(params, success, fail) {
    http.post('/api/getOpenId', params, success, fail)
  },

  getBanners: function(params, success, fail) {
    http.post('/api/getBanners', params, success, fail)
  },

  joinAct: function(params, success, fail) {
    http.post('/api/activity/join', params, success, fail)
  }
}